<?php
namespace Admin\Model;
use Think\Model;
class LogModel extends Model 
{
	public $tableName = 'log';

	//获取日志条数
	public function index($userid)
	{
		$logModel = M('log');
		$arr['user_Id'] = $userid;

		$res = $logModel->where($arr)->select();

		return $res;
	}


}